package com.example.myapplication5.ui.screens

import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.layout.Column


import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
//import androidx.wear.compose.material.CircularProgressIndicator
import androidx.compose.material3.CircularProgressIndicator
//import androidx.compose.material3.ProgressIndicatorDefaults
@Composable
fun CircularProgressIndicatorSample2() {
//    var progress by remember { mutableStateOf(0.1f) }
//    val animatedProgress by animateFloatAsState(
//        targetValue = progress,
//        animationSpec = ProgressIndicatorDefaults.ProgressAnimationSpec
//    )

    Column(horizontalAlignment = Alignment.CenterHorizontally) {
//        CircularProgressIndicator(progress = { animatedProgress })
//        Spacer(Modifier.requiredHeight(30.dp))
//        OutlinedButton(
//            modifier = Modifier.semantics {
//                val progressPercent = (progress * 100).toInt()
//                if (progressPercent in progressBreakpoints) {
//                    stateDescription = "Progress $progressPercent%"
//                }
//            },
//            onClick = {
//                if (progress < 1f) progress += 0.1f
//            }
//        ) {
//            Text("Increase")
//        }
    }
}

@Composable
fun IndeterminateCircularProgressIndicatorSample() {
    Column(horizontalAlignment = Alignment.CenterHorizontally) {
//        CircularProgressIndicator(progress=0.5f)
        CircularProgressIndicator()
    }
}

